CPP  = g++
CC   = gcc

RES  = 
OBJ  = obj/DrawingMaterial.o obj/DrawingPolygon.o obj/DrawingCamera.o obj/DrawingLight.o obj/DrawingMap.o obj/DrawingMesh.o obj/DrawingRoot.o obj/DrawingScene.o $(RES)
LINKOBJ  = obj/DrawingMaterial.o obj/DrawingPolygon.o obj/DrawingCamera.o obj/DrawingLight.o obj/DrawingMap.o obj/DrawingMesh.o obj/DrawingRoot.o obj/DrawingScene.o $(RES)
LIBS =  ../../../exceptions/lib/linux32/libexceptions.a -lGL
INCS =  -I"../../source"  -I"../../../mathing/source"  -I"../../../modeling/source"  -I"../../../exceptions/source" 
CXXINCS =  -I"../../source"  -I"../../../mathing/source"  -I"../../../modeling/source"  -I"../../../exceptions/source" 
BIN  = ../../lib/linux32/libdrawing.a
CXXFLAGS = $(CXXINCS)   -w -fexceptions
CFLAGS = $(INCS)   -w -fexceptions
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before ../../lib/linux32/libdrawing.a all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
	ar r $(BIN) $(LINKOBJ)
	ranlib $(BIN)

obj/DrawingMaterial.o: ../../source/DrawingMaterial.cpp
	$(CPP) -c ../../source/DrawingMaterial.cpp -o obj/DrawingMaterial.o $(CXXFLAGS)

obj/DrawingPolygon.o: ../../source/DrawingPolygon.cpp
	$(CPP) -c ../../source/DrawingPolygon.cpp -o obj/DrawingPolygon.o $(CXXFLAGS)

obj/DrawingCamera.o: ../../source/DrawingCamera.cpp
	$(CPP) -c ../../source/DrawingCamera.cpp -o obj/DrawingCamera.o $(CXXFLAGS)

obj/DrawingLight.o: ../../source/DrawingLight.cpp
	$(CPP) -c ../../source/DrawingLight.cpp -o obj/DrawingLight.o $(CXXFLAGS)

obj/DrawingMap.o: ../../source/DrawingMap.cpp
	$(CPP) -c ../../source/DrawingMap.cpp -o obj/DrawingMap.o $(CXXFLAGS)

obj/DrawingMesh.o: ../../source/DrawingMesh.cpp
	$(CPP) -c ../../source/DrawingMesh.cpp -o obj/DrawingMesh.o $(CXXFLAGS)

obj/DrawingRoot.o: ../../source/DrawingRoot.cpp
	$(CPP) -c ../../source/DrawingRoot.cpp -o obj/DrawingRoot.o $(CXXFLAGS)

obj/DrawingScene.o: ../../source/DrawingScene.cpp
	$(CPP) -c ../../source/DrawingScene.cpp -o obj/DrawingScene.o $(CXXFLAGS)

